//
//  LeTime.h
//  Leste
//
//  Created by 王乐 on 2022/1/25.
//

#ifndef LeTime_hpp
#define LeTime_hpp

#include <GLFW/glfw3.h>

class LeTime
{
public:
    LeTime();
    ~LeTime();
    
public:
    static void updateTime()
    {
        float dCurFrame = glfwGetTime();
        dDeltaTime = dCurFrame - dLastFrame;
        dLastFrame = dCurFrame;
    }
    
public:
    static float dDeltaTime;
    
private:
    static float dLastFrame;
    static float dCurFrame;
};

#endif /* LeTime_hpp */
